package db.dto;

import java.io.Serializable;

public class NurseHasOperatins implements Serializable
{
	/** 
	 * This attribute maps to the column ID_OPERATION in the NURSE_HAS_OPERATINS table.
	 */
	protected int idOperation;

	/** 
	 * This attribute maps to the column ID_NURSE in the NURSE_HAS_OPERATINS table.
	 */
	protected int idNurse;

    public NurseHasOperatins() {
    }

    /**
	 * Method 'NurseHasOperatins'
	 * 
	 */
	public NurseHasOperatins(int idNurse, int idOperation)
	{
        this.idNurse = idNurse;
        this.idOperation = idOperation;
	}



    /**
	 * Method 'getIdOperation'
	 * 
	 * @return int
	 */
	public int getIdOperation()
	{
		return idOperation;
	}

	/**
	 * Method 'setIdOperation'
	 * 
	 * @param idOperation
	 */
	public void setIdOperation(int idOperation)
	{
		this.idOperation = idOperation;
	}

	/**
	 * Method 'getIdDoctor'
	 * 
	 * @return int
	 */
	public int getIdNurse()
	{
		return idNurse;
	}

	/**
	 * Method 'setIdDoctor'
	 * 
	 * @param idNurse
	 */
	public void setIdNurse(int idNurse)
	{
		this.idNurse = idNurse;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof NurseHasOperatins)) {
			return false;
		}
		
		final NurseHasOperatins _cast = (NurseHasOperatins) _other;
		if (idOperation != _cast.idOperation) {
			return false;
		}
		
		if (idNurse != _cast.idNurse) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idOperation;
		_hashCode = 29 * _hashCode + idNurse;
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "db.dto.NurseHasOperatins: " );
		ret.append( "idOperation=" + idOperation );
		ret.append( ", idDoctor=" + idNurse );
		return ret.toString();
	}

}
